.terminal-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.terminal-container {
  flex: 1;
  position: relative;
  min-height: 0;
  background-color: var(--terminal-background);
}

.terminal-content {
  width: 100%;
  height: 100%;
  padding: 2px;
}

/* 补全下拉框容器 */
.completion-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  isolation: isolate;
  z-index: 100;
}

/* 终端加载覆盖层 */
.terminal-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 30, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.terminal-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background-color: rgba(40, 40, 40, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.terminal-loading-text {
  color: #d4d4d4;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-top: 8px;
}

.terminal-loading-hint {
  color: #999;
  font-size: 12px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-top: 4px;
}

/* 终端基础样式 */
.terminal .xterm {
  padding: 0;
}

.xterm-viewport {
  overflow-y: auto;
  overflow-x: hidden;
}

/* 自定义滚动条样式 */
.terminal ::-webkit-scrollbar {
  width: 8px;
}

.terminal ::-webkit-scrollbar-track {
  background: #1e1e1e;
}

.terminal ::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.terminal ::-webkit-scrollbar-thumb:hover {
  background: #888;
} 